<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customers_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customers_id" data-rule="required" data-source="customers/index" class="form-control selectpage" name="row[customers_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Created_by')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-created_by" data-rule="required" class="form-control" name="row[created_by]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_type" data-rule="required" class="form-control" name="row[contract_type]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_category')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_category" data-rule="required" class="form-control" name="row[course_category]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subcategory')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subcategory" class="form-control" name="row[subcategory]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_lessons')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_lessons" data-rule="required" class="form-control" name="row[contract_lessons]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_lenght')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_lenght" class="form-control" name="row[contract_lenght]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[start_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_lessons_paid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_lessons_paid" data-rule="required" class="form-control" name="row[contract_lessons_paid]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_lessons_free')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_lessons_free" data-rule="required" class="form-control" name="row[contract_lessons_free]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_office')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_office" class="form-control" name="row[other_office]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_level" data-rule="required" class="form-control" name="row[start_level]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_level" data-rule="required" class="form-control" name="row[end_level]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cool_coin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cool_coin" class="form-control" name="row[cool_coin]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Consultant')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-consultant" data-rule="required" class="form-control" name="row[consultant]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('In_charge_teacher')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-in_charge_teacher" data-rule="required" class="form-control" name="row[in_charge_teacher]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_kpi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_kpi" class="form-control" name="row[teacher_kpi]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Currency')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-currency" data-rule="required" class="form-control" name="row[currency]" type="text" value="USD">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_tuition')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_tuition" data-rule="required" class="form-control" step="0.01" name="row[contract_tuition]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Schoolarship_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-schoolarship_amount" data-rule="required" class="form-control" step="0.01" name="row[schoolarship_amount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_amount" data-rule="required" class="form-control" step="0.01" name="row[contract_amount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Book_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-book_fee" data-rule="required" class="form-control" step="0.01" name="row[book_fee]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enrollment_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enrollment_fee" data-rule="required" class="form-control" step="0.01" name="row[enrollment_fee]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_fee" class="form-control" step="0.01" name="row[other_fee]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="255"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
